package com.myhouse.service;

import com.myhouse.model.House;

import org.springframework.data.domain.Page;


import java.util.List;
import java.util.Optional;

public interface HouseService {

    public List<House> getAll(House house);
    
    public Page<House> getAllPage(House house);

    public Optional<House> getById(Integer id);

    public void deleteById(Integer id);

    public void save(House house);
    
}
